var ValidFields = {
    SystemManage: {
        DataDictionary: {
            name: {
                message: '名称验证失败',
                validators: {
                    notEmpty: {
                        message: '名称不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 20,
                        message: '名称长度必须在1到20位之间'
                    }
                }
            },
            code: {
                message: '编码验证失败',
                validators: {
                    notEmpty: {
                        message: '编码不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 20,
                        message: '编码长度必须在1到20位之间'
                    },
                    regexp: {
                        regexp: /^[a-zA-Z0-9_]+$/,
                        message: '编码只能包含大写、小写、数字和下划线'
                    }
                }
            },
            values: {
                message: '字典项验证失败',
                validators: {
                    notEmpty: {
                        message: '字典项不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 5000,
                        message: '字典项长度必须在1到5000位之间'
                    }
                }
            }
        },
        DeviceCategory: {
            name: {
                message: '名称验证失败',
                validators: {
                    notEmpty: {
                        message: '名称不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 20,
                        message: '名称长度必须在1到20位之间'
                    }
                }
            }
        },
        PartCategory: {
            name: {
                message: '名称验证失败',
                validators: {
                    notEmpty: {
                        message: '名称不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 20,
                        message: '名称长度必须在1到20位之间'
                    }
                }
            }
        },
        PointCategory: {
            name: {
                message: '名称验证失败',
                validators: {
                    notEmpty: {
                        message: '名称不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 20,
                        message: '名称长度必须在1到20位之间'
                    }
                }
            }
        },
        Device: {
            name: {
                message: '名称验证失败',
                validators: {
                    notEmpty: {
                        message: '名称不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 20,
                        message: '名称长度必须在1到20位之间'
                    }
                }
            },
            code: {
                message: '编码验证失败',
                validators: {
                    notEmpty: {
                        message: '编码不能为空'
                    },
                    stringLength: {
                        min: 1,
                        max: 20,
                        message: '编码长度必须在1到20位之间'
                    }
                }
            }
        },
    },
    Report:
        {
            Process:
                {
                    dealerSfzh: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },
                    dealerName: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },
                    surveyResults: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 1000,
                                message: '长度必须在1到1024位之间'
                            }
                        }
                    },
                    disposalResult: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 1000,
                                message: '长度必须在1到1024位之间'
                            }
                        }
                    }
                }
        },
    user:
        {
            add:
                {
                    userName: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '用户名不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },
                    realName: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '真实姓名不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },

                    role: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '不能为空'
                            }
                        }
                    },
                    address:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 120,
                                message: '长度必须在1到120位之间'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 120,
                                message: '长度必须在1到120位之间'
                            }
                        }
                    }
                },
            update:
                {
                    password: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '密码不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '密码长度必须在1到20位之间'
                            },
                            regexp: {
                                regexp: /^[a-zA-Z0-9_]+$/,
                                message: '密码只能包含大写、小写、数字和下划线'
                            }
                        }
                    },
                    oldPassword: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '原密码不能为空'
                            }
                        }
                    }
                }
        },
    role:
        {
            add:
                {
                    roleName: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '角色名不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },
                    roleCode: {
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 120,
                                message: '长度必须在1到120位之间'
                            }
                        }
                    }
                }
        },
    org:
        {
            add:
                {
                    name: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '名称不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },
                    fullName: {
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 40,
                                message: '长度必须在1到40位之间'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 120,
                                message: '长度必须在1到120位之间'
                            }
                        }
                    }
                }
        },
    our:
        {
            add:
                {
                    title: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '标题不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 20,
                                message: '长度必须在1到20位之间'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 120,
                                message: '长度必须在1到120位之间'
                            }
                        }
                    }
                }
        },
    education:
        {
            add:
                {
                    title: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '标题不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 120,
                                message: '长度必须在1到120位之间'
                            }
                        }
                    },
                    fullTitle:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 140,
                                message: '长度必须在1到140位之间'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 240,
                                message: '长度必须在1到240位之间'
                            }
                        }
                    },
                    link:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 240,
                                message: '长度必须在1到240位之间'
                            }
                        }
                    }
                }
        },
    question:
        {
            add:
                {
                    name: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '标题不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 400,
                                message: '长度必须在1到400位之间'
                            }
                        }
                    },
                    rewardId: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '奖励方案不能为空'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 240,
                                message: '长度必须在1到240位之间'
                            }
                        }
                    }
                },
            addItem:
                {
                    name: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '标题不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 400,
                                message: '长度必须在1到400位之间'
                            }
                        }
                    },
                    score:{
                        message: '验证失败',
                        validators: {
                            numeric: {
                                message: '只能输入数字'
                            },
                            lessThan:{
                                value: 9999,
                                message:'输入分值应小于9999'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 240,
                                message: '长度必须在1到240位之间'
                            }
                        }
                    }
                },
            addOption:
                {
                    name: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '内容不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 200,
                                message: '长度必须在1到200位之间'
                            }
                        }
                    }
                },
            addReward:
                {
                    name: {
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '名称不能为空'
                            },
                            stringLength: {
                                min: 1,
                                max: 400,
                                message: '长度必须在1到400位之间'
                            }
                        }
                    },
                    num:{
                        message: '验证失败',
                        validators: {
                            notEmpty: {
                                message: '奖励人数不能为空'
                            },
                            numeric: {
                                message: '只能输入数字'
                            },
                            lessThan:{
                                value: 9999,
                                message:'奖励人数应小于9999'
                            }
                        }
                    },
                    description:{
                        message: '验证失败',
                        validators: {
                            stringLength: {
                                min: 1,
                                max: 240,
                                message: '长度必须在1到240位之间'
                            }
                        }
                    }
                }
        }
}